package com.ljl.domain;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * @author ljl
 * @version 1.0
 * @date 2022/10/10 9:08
 */
public class XmlData implements Cloneable, Serializable {

    /** 名称 */
    private String name;

    /** 等级/层级 */
    private Integer level;

    /** 祖级名称 */
    private String ancestorNames;

    /** 属性 */
    private Map<String, String> properties;

    /** 子级 */
    private List<XmlData> children;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public String getAncestorNames() {
        return ancestorNames;
    }

    public void setAncestorNames(String ancestorNames) {
        this.ancestorNames = ancestorNames;
    }

    public Map<String, String> getProperties() {
        return properties;
    }

    public void setProperties(Map<String, String> properties) {
        this.properties = properties;
    }

    public List<XmlData> getChildren() {
        return children;
    }

    public void setChildren(List<XmlData> children) {
        this.children = children;
    }

    @Override
    public String toString() {
        return "XmlData{" +
                "name='" + name + '\'' +
                ", level=" + level +
                ", ancestorNames='" + ancestorNames + '\'' +
                ", properties=" + properties +
                ", children=" + children +
                '}';
    }
}
